import axios from 'axios'

export async function login(user){
    var resp =await axios.get("/api/crm/login2",{
        params:{
            userName:user.userName,
            userPwd:user.userPwd
        }
    })
    console.log(resp);
    return resp.data;
}

export async function getUserPermission(userId){
    var resp =await axios.get("/api/crm/login3",{
        params:{
            userId
        }
    })
    console.log(resp);
    return resp.data;
}